//
//  QFilterMethod.h
//  ImageEffect
//
//  Created by lichq on 13-12-24.
//  Copyright (c) 2013年 lichq. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface QFilterMethod : NSObject

unsigned char roundCGFloatToUChar( CGFloat p );
unsigned char roundIntToUChar( int p );

void changeRGBA_lomoNTSC(int *red,int *green,int *blue,int *alpha);
void changeRGBA_ruise(int *red,int *green,int *blue,int *alpha);



#pragma mark - Change Pixel
void changePixelFun(unsigned char **imagePixel, int w, int h, void (*changeRGBAFun)(int *red,int *green,int *blue,int *alpha) );

void changePixel_lomoNTSC(unsigned char **imagePixel, int w, int h);

void changePixel_lomoMethod1(unsigned char **imagePixel, int w, int h);
void changePixel_heibai(unsigned char **imagePixel, int w, int h);
void changePixel_huaijiu(unsigned char **imagePixel, int w, int h);
void changePixel_gete(unsigned char **imagePixel, int w, int h);
void changePixel_ruise(unsigned char **imagePixel, int w, int h);

void changePixel_danya(unsigned char **imagePixel, int w, int h);
void changePixel_jiuhong(unsigned char **imagePixel, int w, int h);
void changePixel_qingning(unsigned char **imagePixel, int w, int h);
void changePixel_langman(unsigned char **imagePixel, int w, int h);
void changePixel_guangyun(unsigned char **imagePixel, int w, int h);

void changePixel_landiao(unsigned char **imagePixel, int w, int h);
void changePixel_menghuan(unsigned char **imagePixel, int w, int h);
void changePixel_yese(unsigned char **imagePixel, int w, int h);

void changePixel_LomoMethod3(unsigned char **imagePixel, int w, int h);
void changePixel_Sketch(unsigned char **imagePixel, int w, int h);
void changePixel_Scrap(unsigned char **imagePixel, int w, int h);
void changePixel_Dipian(unsigned char **imagePixel, int w, int h);





@end
